import ctypes as ct

# includes:

# target: test.h

# <SourceLocation file 'test.h', line 19, column 8>
class CtpMarketRequest(ct.Structure): pass
# <SourceLocation file 'test.h', line 28, column 8>
class CtpMarketResponse(ct.Structure): pass
# <SourceLocation file 'test.h', line 38, column 8>
class s(ct.Structure): pass
# <SourceLocation file 'test.h', line 57, column 5>
class unnamed_test_57_5_956992420(ct.Structure): pass
# <SourceLocation file 'test.h', line 40, column 8>
class MarketData(ct.Structure): pass
InstrumentCodeType = (ct.c_char * 30)
CtpMarketRequest._fields_ = [
	('count', ct.c_int),
	('url', (ct.c_char * 16)),
	('port', ct.c_int),
	('flow_path', (ct.c_char * 100)),
	('instruments', ct.POINTER((ct.c_char * 30))),
]
CtpMarketResponse._fields_ = [
	('msg', (ct.c_char * 100)),
	('success_inst_len', ct.c_int),
	('shm_name', (ct.c_char * 20)),
]
Handle = ct.POINTER(None)
PVMarketData = ct.POINTER(None)
s._fields_ = [

]
unnamed_test_57_5_956992420._fields_ = [
	('a', ct.c_int),
	('b', ct.c_int),
]
MarketData._fields_ = [
	('volume_0d5', ct.c_int),
	('price_0d5', ct.c_double),
	('volume_0d1', ct.c_int),
	('interest_1d0', ct.c_int),
	('price_1d0', ct.c_double),
	('time_force', ct.c_double),
	('interest_0d1', ct.c_int),
	('interest_0d5', ct.c_int),
	('c', unnamed_test_57_5_956992420),
	('symbol', (ct.c_char * 32)),
	('p2', ct.POINTER((ct.c_int * 0))),
	('volume_1d0', ct.c_int),
	('p1', (ct.POINTER(None) * 0)),
	('price_0d1', ct.c_double),
]
p2 = ct.POINTER((ct.c_int * 0))
p1 = (ct.POINTER(None) * 0)
# <SourceLocation file 'test.h', line 72, column 22>
# LinkageKind.EXTERNAL
requestCtpMarket = ct.CFUNCTYPE(Handle, ct.POINTER(CtpMarketRequest), ct.POINTER(CtpMarketResponse))

# <SourceLocation file 'test.h', line 73, column 20>
# LinkageKind.EXTERNAL
stopCtpMarket = ct.CFUNCTYPE(None, Handle)

# <SourceLocation file 'test.h', line 74, column 20>
# LinkageKind.EXTERNAL
releaseCtpMarket = ct.CFUNCTYPE(None, Handle)

# <SourceLocation file 'test.h', line 75, column 20>
# LinkageKind.EXTERNAL
joinCtpMarket = ct.CFUNCTYPE(None, Handle)

# <SourceLocation file 'test.h', line 76, column 20>
# LinkageKind.EXTERNAL
queryCtpMarketSubIsSuccess = ct.CFUNCTYPE(None, Handle)

# <SourceLocation file 'test.h', line 77, column 20>
# LinkageKind.EXTERNAL
queryCtpMarketIsRunning = ct.CFUNCTYPE(None, Handle)

# <SourceLocation file 'test.h', line 78, column 28>
# LinkageKind.EXTERNAL
queryCtpMarketData = ct.CFUNCTYPE(PVMarketData, Handle)

# <SourceLocation file 'test.h', line 79, column 20>
# LinkageKind.EXTERNAL
queryCtpMarketQueueIsEmpty = ct.CFUNCTYPE(None, Handle)

# <SourceLocation file 'test.h', line 80, column 20>
# LinkageKind.EXTERNAL
ackCtpMarketData = ct.CFUNCTYPE(None, Handle, PVMarketData)

# <SourceLocation file 'test.h', line 81, column 20>
# LinkageKind.EXTERNAL
queryCtpQueueStatus = ct.CFUNCTYPE(None, Handle, ct.POINTER(ct.c_int), ct.POINTER(ct.c_int), ct.POINTER(ct.c_int))

# <SourceLocation file 'test.h', line 82, column 20>
# LinkageKind.EXTERNAL
getCTPVersion = ct.CFUNCTYPE(None)

